<?php

namespace PhpYes\Modules\Cmd;


abstract class SubCmdBase extends CmdBase
{
    /** @var ParentCmdBase */
    private $parentCmd;

    /**
     * SubCmdBase constructor.
     * @param ParentCmdBase $parentCmd
     * @param string|null $alias
     */
    public function __construct(ParentCmdBase $parentCmd, $alias = null)
    {
        $this->parentCmd = $parentCmd;

        parent::__construct($alias);
    }

    /**
     * @return ParentCmdBase
     */
    public function getParentCmd()
    {
        return $this->parentCmd;
    }
}